package com.pang.myRule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author： pang-yun
 * @date： 2022-02-10 11:33
 * Description:
 */

@Configuration
public class IMyRule {
    @Bean
    public IRule myRule() {
        return new RandomRule();  // 随机获取
    }
}
